// 定义模型 Model 
var Book = Backbone.Model.extend({
    defaults: {
        title: "",
        author: ""
    }
});

// 创建集合 Collection 
var Library = Backbone.Collection.extend({
    model: Book
});

// 视图 View 示例  
var BookView = Backbone.View.extend({
    tagName: 'li',
    template: _.template($('#book-template').html()),
    render: function () {
        this.$el.html(this.template(this.model.toJSON()));
        return this;
    }
});